$('.shopCheck').on('click',function(){
	console.log('click');
	$.ajax({
		url:'/eshop/backEshop/checkEshopName.json',
		type:'get',
		dataType:'json',
		data:{
			'eshopName':$('.saleEshopName').val()
		},
		success:function(res){
			console.log(res);
			if(res['code'] == 200){
				alert(res['message']);
			}else if(res['code'] == -300){
				alert(res['message']);
			}else if(res['code'] == -200){
				alert(res['message']);
			}
		},
		error:function(XMLHttpRequest, textStatus, errorThrown) {
			 console.log(XMLHttpRequest.status);
			 console.log(XMLHttpRequest.readyState);
			 console.log(textStatus);
		}
	})
})

$('.formSubmitBtn').on('click',function(){
	$('form').submit();
})